package com.alibaba.org.service;

import com.alibaba.basic.util.PageList;
import com.alibaba.org.domain.Department;
import com.alibaba.org.query.DepartmentQuery;
/**
 * 部门服务接口
 */
import java.util.List;

public interface DepartmentService {
    List<Department> loadAll();
    Department loadById(Long id);

    void  save(Department department);
    void remove(Long id);
    void  update(Department department);

    PageList<Department> queryPage(DepartmentQuery departmentQuery);

    /**
     * 批量删除
     * @param ids
     */
    void pathDelete(Long[] ids);
    /*
    部门树
     */
    List<Department> getDeptTree();
}
